package com.ethanzzh.ethanzzh_xdclass.mapper;

import com.ethanzzh.ethanzzh_xdclass.model.pojo.UserInfo;
import com.ethanzzh.ethanzzh_xdclass.provider.UserInfoProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import tk.mybatis.mapper.common.Mapper;

@org.apache.ibatis.annotations.Mapper
public interface UserInfoMapper extends Mapper<UserInfo> {



    @UpdateProvider(type = UserInfoProvider.class, method = "updateUserInfo")
    Integer updateUserByName(UserInfo sysUser);

    @Select("select count(*) from user_info where name =#{name}")
    Integer selectByName(@Param("name") String name);

}